<?

/**
 * 우편번호 검색 스크립트를 출력한다.
 *
 * @author cwsong
 * @since 0.3.3
 */
function load_postcode_search_script() {
    $pluginUrl = trailingslashit(WP_PLUGIN_URL) . dirname(plugin_basename(__FILE__));
    wp_enqueue_script("thickbox");
    wp_enqueue_style("thickbox");
    wp_enqueue_script("search-postcode-handle", $pluginUrl . "/js/search-postcode.js", array("jquery"));
    wp_localize_script("search-postcode-handle", "SearchSettings", array(
        "plugin_url" => $pluginUrl
    ));
}

add_action("wp_print_scripts", "load_postcode_search_script");
?>